<template>
    <el-form ref="form" :model="formData" :label-width="formLabelWidth">

        <el-form-item label="用户ID">
            <el-input v-model="formData.user_id" autocomplete="off"></el-input>
        </el-form-item>


        <el-form-item label="">
            <el-button type="primary" @click="submit">保存</el-button>

        </el-form-item>
    </el-form>
</template>

<script>
    export default {
        props: {
            formLabelWidth: {
                type: String,
                default: '120px'
            },

        },

        data() {
            return {
                formData: {
                    user_id: '',
                }
            }

        },
        created() {
            let _this = this;

        },
        destroyed() {

        },
        mounted() {
            let _this = this

        },
        methods: {


            submit: function (event) {

                if (event) {
                    event.preventDefault()
                }
                let _this = this;
                console.log('api.l-e-s.access-control.superusers.save')
                LeRoute.request('api.l-e-s.access-control.superusers.save', _this.formData).then(function (res_data) {
                    _this.$message.success('保存成功')
                    _this.$emit('saved')
                })
            },

        }
    }
</script>
